package com.xcity.pomelo.response;

import com.xcity.game.skill.PlayerSkill;
import com.xcity.game.skill.state.State;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class SimpleSkillResponse extends Response {

	protected SimpleSkill skill;
	
	public static class SimpleSkill {
		public int id;
		public State state;
		public PlayerSkill.SkillPhase phase;
		public SimpleSkill(PlayerSkill skill) {
			this.id = skill.getId();
			this.state = skill.getState();
			this.phase = skill.getPhase();
		}
	}
	
	public SimpleSkillResponse(int serial, PlayerSkill skill) {
		super(serial);
		this.skill = new SimpleSkill(skill);
	}

	public SimpleSkill getSkill() {
		return skill;
	}

	public void setSkill(SimpleSkill skill) {
		this.skill = skill;
	}
	
}
